import request from '@/utils/request'

// 获取仪表盘列表
export function dashboardList(data) {
  return request({
    url: '/dashboard/list',
    method: 'POST',
    data
  })
}

// 获取单个文件夹下仪表盘列表
export function dashboardInDirList(data) {
  return request({
    url: '/dashboard/dashboardInDir',
    method: 'POST',
    data
  })
}

// 获取仪表盘信息
export function dashboardInfo(data) {
  return request({
    url: '/dashboard/detail',
    method: 'POST',
    data
  })
}

// 获取图表数据
export function dashboardQuery(data) {
  return request({
    url: '/dashboard/query',
    method: 'POST',
    data
  })
}

// 更新图表信息
export function dashboardUpdate(data) {
  return request({
    url: '/dashboard/update',
    method: 'POST',
    data
  })
}

// 获取仪表盘下所有数据集列表
export function datasetListForDashboard(data) {
  return request({
    url: '/dataset/list',
    method: 'POST',
    data
  })
}
